package cn.fzkj.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import cn.fzkj.common.utils.PageUtils;
import cn.fzkj.gulimall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author chenxin
 * @email chenxin@gmail.com
 * @date 2022-02-19 22:47:32
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listByTree();

    boolean removeNotUsedMenuByIds(Long[] catIds);

    // 查找分类路径 一级/二级/三级
    Long[] findCategoryPath(Long attrGroupId);

    /** 查询出一级分类 */
    List<CategoryEntity> getCategories();

}

